package exo1;

import java.util.ArrayList;
import java.util.List;





public class Main {

	public static void main(String[] args) {
		/*
		String nom="erik";
		CompteEpargne test = new CompteEpargne(nom, 1, 140,120, 15);
		int nbMois = Calendar.getInstance().MONTH+1;
		double interet = test.getTauxRem()*test.getCapital()*nbMois;
		System.out.println(interet);
		test.crediter(30);
		System.out.println(test);
		
		CompteCourant test = new CompteCourant("Erik", 1, 140);
		test.crediter(30);
		System.out.println(test);
		test.debiter(100);
		System.out.println(test);
		*/
		
		CompteEpargne test1 = new CompteEpargne("Erik", 1, 1000, 120, 15);
		CompteCourant test2 = new CompteCourant("Jacks", 2, 140);
		CompteAction test3 = new CompteAction("Elise", 1, 1000, 20);
		List<Compte> banque = new ArrayList<Compte>();
		banque.add(test1);
		banque.add(test2);
		banque.add(test3);
		
		for(int i=0; i<banque.size(); i++){
			System.out.println(banque.get(i));
		}
		
	}
}
